<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/11/7
  Time: 15:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>内容信息浏览</title>
    <script type="text/javascript" src="/js/jquery.1.9.1.js"></script>
    <link rel="stylesheet" type="text/css" href="/layui/css/layui.css">
    <script type="text/javascript" src="/layui/layui.js"></script>
</head>
<body>

<table id="contentTable"></table>
<script type="text/javascript">
    layui.use(['table'],function () {

            var table = layui.table;
            //1.初始化table分页显示数据
            var tabIns = table.render({
                elem: '#contentTable',
                url: 'content/list',
                page: true,
                limit: 5,
                limits: [5, 10, 15],
                cols: [[
                    {field: 'id', title: '编号', width: 177},
                    {field: 'categoryId', title: '父编号 ', width: 177},
                    {field: 'title', title: '标题 ', width: 177},
                    {field: 'subTitle', title: '子标题', width: 177},
                    {field: 'url', title: '地址', width: 177},
                    {field: 'pic', title: '图片', width: 177},
                    {field: 'content', title: '内容', width: 277}
                ]]
            });
        });
</script>
</body>
</html>
